合单查询订单 
电商平台通过合单查询订单API查询订单状态,完成下一步的业务逻辑。
| 请求参数 | 类型 | 描述 | 
|---|---|---|
| combine_out_trade_no | string | 合单商户订单号 | 
php
$instance->v3->combineTransactions->outTradeNo->_combine_out_trade_no_->getAsync([
  'combine_out_trade_no' => 'P20150806125346',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/combine-transactions/out-trade-no/{combine_out_trade_no}')->getAsync([
  'combine_out_trade_no' => 'P20150806125346',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/combine-transactions/out-trade-no/{combine_out_trade_no}']->getAsync([
  'combine_out_trade_no' => 'P20150806125346',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->combineTransactions->outTradeNo->_combine_out_trade_no_->get([
  'combine_out_trade_no' => 'P20150806125346',
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/combine-transactions/out-trade-no/{combine_out_trade_no}')->get([
  'combine_out_trade_no' => 'P20150806125346',
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/combine-transactions/out-trade-no/{combine_out_trade_no}']->get([
  'combine_out_trade_no' => 'P20150806125346',
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 | 
|---|---|---|
| combine_appid | string | 合单商户appid | 
| combine_mchid | string | 合单商户号 | 
| combine_out_trade_no | string | 合单商户订单号 | 
| combine_transaction_id | string | 交易单微信支付订单号 | 
| scene_info | object | 场景信息 | 
| device_id | string | 商户端设备号 | 
| sub_orders | object[] | 子单信息 | 
| mchid | string | 子单商户号 | 
| individual_auth_id | string | 商品单个人收款方受理授权ID | 
| individual_name | string | 商品单个人收款方平台昵称 | 
| trade_type | string | 交易类型NATIVE | JSAPI | APP | MWEB 枚举值之一 | 
| trade_state | string | 交易状态SUCCESS | REFUND | NOTPAY | CLOSED | PAYERROR 枚举值之一 | 
| bank_type | string | 付款银行 | 
| attach | string | 附加数据 | 
| success_time | string | 支付完成时间 | 
| transaction_id | string | 微信订单号 | 
| out_trade_no | string | 子单商户订单号 | 
| sub_mchid | string | 二级商户号 | 
| sub_appid | string | 子商户应用ID | 
| sub_openid | string | 用户子标识 | 
| promotion_detail | object[] | 优惠信息列表 | 
| coupon_id | string | 券ID | 
| name | string | 优惠名称 | 
| scope | string | 优惠范围GLOBAL | SINGLE 枚举值之一 | 
| type | string | 优惠类型CASH | NOCASH 枚举值之一 | 
| amount | integer | 优惠券面额 | 
| stock_id | string | 活动批次ID | 
| wechatpay_contribute | integer | 微信出资 | 
| merchant_contribute | integer | 商户出资 | 
| other_contribute | integer | 其他出资 | 
| currency | string | 优惠币种 | 
| goods_detail | object[] | 单品列表 | 
| goods_id | string | 商品编码 | 
| quantity | integer | 商品数量 | 
| unit_price | integer | 商品单价 | 
| discount_amount | integer | 商品优惠金额 | 
| goods_remark | string | 商品备注 | 
| amount | object | 订单金额 | 
| total_amount | integer | 标价金额 | 
| currency | string | 标价币种 | 
| payer_amount | integer | 现金支付金额 | 
| payer_currency | string | 现金支付币种 | 
| settlement_rate | number | 结算汇率(汇率值是汇率乘以10的8次方) | 
| combine_payer_info | object | 支付者 | 
| openid | string | 用户标识 | 
| trade_scenario | string | 交易场景RECOMMERCE 枚举值 | 
| installment_info | object | 使用的商户贴息信息(微信分付) | 
| use_subsidy | boolean | 是否使用了商户贴息 | 
| selected_installment_number | integer | 用户实际选择分期期数 | 
参阅 官方文档 官方文档 官方文档 官方文档 官方文档 官方文档 官方文档 官方文档 官方文档 官方文档 官方文档 官方文档 官方文档 官方文档